home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / VideoServices.p < prev    next >
Encoding:
Text File  |  1998-02-12  |  3.9 KB  |  136 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        VideoServices.p
  3.  
  4.      Contains:    Video Services Library Interfaces.
  5.  
  6.      Version:    Technology:    PowerSurge 1.0.2
  7.                  Release:    Universal Interfaces 3.1
  8.  
  9.      Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT VideoServices;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __VIDEOSERVICES__}
  28. {$SETC __VIDEOSERVICES__ := 1}
  29.  
  30. {$I+}
  31. {$SETC VideoServicesIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __MACTYPES__}
  35. {$I MacTypes.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __NAMEREGISTRY__}
  38. {$I NameRegistry.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __QUICKDRAW__}
  41. {$I Quickdraw.p}
  42. {$ENDC}
  43.  
  44.  
  45. {$PUSH}
  46. {$ALIGN MAC68K}
  47. {$LibExport+}
  48.  
  49.  
  50. CONST
  51.     kTransparentEncoding        = 0;
  52.     kInvertingEncoding            = 1;
  53.  
  54.     kTransparentEncodingShift    = $00;
  55.     kTransparentEncodedPixel    = $01;
  56.     kInvertingEncodingShift        = $02;
  57.     kInvertingEncodedPixel        = $04;
  58.  
  59.  
  60.  
  61.  
  62.     kHardwareCursorDescriptorMajorVersion = $0001;
  63.     kHardwareCursorDescriptorMinorVersion = $0000;
  64.  
  65.  
  66. TYPE
  67.     UInt32Ptr                            = ^UInt32;
  68.     HardwareCursorDescriptorRecPtr = ^HardwareCursorDescriptorRec;
  69.     HardwareCursorDescriptorRec = RECORD
  70.         majorVersion:            UInt16;
  71.         minorVersion:            UInt16;
  72.         height:                    UInt32;
  73.         width:                    UInt32;
  74.         bitDepth:                UInt32;
  75.         maskBitDepth:            UInt32;
  76.         numColors:                UInt32;
  77.         colorEncodings:            UInt32Ptr;
  78.         flags:                    UInt32;
  79.         supportedSpecialEncodings: UInt32;
  80.         specialEncodings:        ARRAY [0..15] OF UInt32;
  81.     END;
  82.  
  83.     HardwareCursorDescriptorPtr            = ^HardwareCursorDescriptorRec;
  84.  
  85. CONST
  86.     kHardwareCursorInfoMajorVersion = $0001;
  87.     kHardwareCursorInfoMinorVersion = $0000;
  88.  
  89.  
  90. TYPE
  91.     HardwareCursorInfoRecPtr = ^HardwareCursorInfoRec;
  92.     HardwareCursorInfoRec = RECORD
  93.         majorVersion:            UInt16;                                    {  Test tool should check for kHardwareCursorInfoMajorVersion1 }
  94.         minorVersion:            UInt16;                                    {  Test tool should check for kHardwareCursorInfoMinorVersion1 }
  95.         cursorHeight:            UInt32;
  96.         cursorWidth:            UInt32;
  97.         colorMap:                CTabPtr;                                {  nil or big enough for hardware's max colors }
  98.         hardwareCursor:            Ptr;
  99.         reserved:                ARRAY [0..5] OF UInt32;                    {  Test tool should check for 0s }
  100.     END;
  101.  
  102.     HardwareCursorInfoPtr                = ^HardwareCursorInfoRec;
  103.  
  104.  
  105. CONST
  106.     kVBLInterruptServiceType    = 'vbl ';
  107.     kHBLInterruptServiceType    = 'hbl ';
  108.     kFrameInterruptServiceType    = 'fram';
  109.     kConnectInterruptServiceType = 'dci ';                        {  Renamed -- Use kFBCheckInterruptServiceType }
  110.     kFBConnectInterruptServiceType = 'dci ';                    {  Demand to check configuration (Hardware unchanged) }
  111.     kFBChangedInterruptServiceType = 'chng';                    {  Demand to rebuild (Hardware has reinitialized on dependent change) }
  112.     kFBOfflineInterruptServiceType = 'remv';                    {  Demand to remove framebuffer (Hardware not available on dependent change -- but must not buserror) }
  113.     kFBOnlineInterruptServiceType = 'add ';                        {  Notice that hardware is available (after being removed) }
  114.  
  115.  
  116. TYPE
  117.     InterruptServiceType                = ResType;
  118.     InterruptServiceIDType                = UInt32;
  119.     InterruptServiceIDPtr                = ^InterruptServiceIDType;
  120. FUNCTION VSLNewInterruptService(VAR serviceDevice: RegEntryID; serviceType: InterruptServiceType; serviceID: InterruptServiceIDPtr): OSErr; C;
  121. FUNCTION VSLWaitOnInterruptService(serviceID: InterruptServiceIDType; timeout: Duration): OSErr; C;
  122. FUNCTION VSLDisposeInterruptService(serviceID: InterruptServiceIDType): OSErr; C;
  123. FUNCTION VSLDoInterruptService(serviceID: InterruptServiceIDType): OSErr; C;
  124. FUNCTION VSLPrepareCursorForHardwareCursor(cursorRef: UNIV Ptr; hardwareDescriptor: HardwareCursorDescriptorPtr; hwCursorInfo: HardwareCursorInfoPtr): BOOLEAN; C;
  125.  
  126. {$ALIGN RESET}
  127. {$POP}
  128.  
  129. {$SETC UsingIncludes := VideoServicesIncludes}
  130.  
  131. {$ENDC} {__VIDEOSERVICES__}
  132.  
  133. {$IFC NOT UsingIncludes}
  134.  END.
  135. {$ENDC}
  136.